bootstrap: don't attempt to download rustc in tests
authorFabian Grünbichler <debian@fabian.gruenbichler.email>
Sat, 11 Jan 2025 15:37:16 +0000 (16:37 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sun, 8 Mar 2026 10:11:47 +0000 (11:11 +0100)
the tests use a default config, so we need to manually override this
option..

Signed-off-by: Fabian Grünbichler <debian@fabian.gruenbichler.email>
Gbp-Pq: Topic build
Gbp-Pq: Name bootstrap-don-t-attempt-to-download-rustc-in-tests.patch

src/bootstrap/src/core/config/config.rs

index 4b7ae6df360dcdca297a8eb22d91245e5f9c2e17..af45754d19bdd50e5731a79abaa3df32c858f04a 100644 (file)
@@ -561,7 +561,7 @@ impl Config {
             new_symbol_mangling: rust_new_symbol_mangling,
             profile_generate: rust_profile_generate,
             profile_use: rust_profile_use,
-            download_rustc: rust_download_rustc,
+            download_rustc: mut rust_download_rustc,
             lto: rust_lto,
             validate_mir_opts: rust_validate_mir_opts,
             frame_pointers: rust_frame_pointers,
@@ -699,6 +699,7 @@ impl Config {
                 );
                 build_rustc = Some(stage0_rustc);
             }
+            rust_download_rustc = Some(StringOrBool::Bool(false));
         }
 
         if !flags_skip_stage0_validation {